﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Session["Teacher"] == null)
                Response.Redirect("~/Teacher/HomePage.aspx");
            int id = Convert.ToInt32(Request.QueryString["id"].ToString());
            Session["ID"] = id;
            munviwScoringForPainting.ActiveViewIndex = 0;
        }
        catch (NullReferenceException)
        {
            lbErrorScoring.Text = "Please select competition!";
            munviwScoringForPainting.ActiveViewIndex = 1;
        }
        catch (Exception ex)
        {
            lbErrorScoring.Text= ex.Message;
            munviwScoringForPainting.ActiveViewIndex = 1;
        }
    }
}